package dong.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.http.HttpMethod;
import reactor.core.publisher.Mono;

import java.util.Map;

/**
 * @author dongxing
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MethodInfo {


    /**
     * 请求url
     */
    private String url;


    /**
     * 请求方法
     */
    private HttpMethod httpMethod;

    /**
     * 请求参数url
     */
    private Map<String, Object> params;

    /**
     * 请求body
     */

    private Mono body;


    /**
     * 请求对象的实际类型
     */
    private Class<?> bodyElementType;


    /**
     * 返回的是flux还是mono
     */
    private boolean returnFlux;


    /**
     * 返回对象的类型
     */
    private Class<?> returnElementType;

}
